package myzd.domain.response;

import lombok.Data;
import myzd.domain.enums.OrderServiceType;
import myzd.domain.enums.OrderSourceType;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zks
 * @since 2017/10/20 9:25
 */
@Data
public class EnumList {

  private Map<OrderServiceType, String> serviceType;

  private Map<OrderSourceType, String> sourceType;

  public EnumList() {
    initServiceType();
    initSourceType();
  }

  private void initServiceType() {
    serviceType = new HashMap<>(4);
    serviceType.put(OrderServiceType.APPOINTMENT, "面诊");
    serviceType.put(OrderServiceType.SURGERY, "会诊手术");
    serviceType.put(OrderServiceType.VIP, "VIP服务");
  }

  private void initSourceType() {
    sourceType = new HashMap<>(10);
    sourceType.put(OrderSourceType.HOT_LINE, "400热线");
    sourceType.put(OrderSourceType.BAIDU_BRIDGE, "百度商桥");
    sourceType.put(OrderSourceType.BUSINESS, "商务通");
    sourceType.put(OrderSourceType.WEIBO, "微博");
    sourceType.put(OrderSourceType.PC_WEB, "PC网站");
    sourceType.put(OrderSourceType.WECHAT, "微信");
    sourceType.put(OrderSourceType.SUSHU, "苏舒");
    sourceType.put(OrderSourceType.CHANNEL, "外部合作");
    sourceType.put(OrderSourceType.MINGYIHUI, "名医汇");
    sourceType.put(OrderSourceType.RED_BIRD, "红鸟云手机");
  }
}
